﻿namespace Wenyu.Framework.Common
{
    /// <summary>
    /// api json 通用返回格式
    /// </summary>
    public class ApiResult
    {
        /// <summary>
        /// 是否正常返回
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 消息
        /// </summary>
        public string? Message { get; set; }
    }

    public class ApiDataResult<T>: ApiResult
    {
        /// <summary>
        /// 结果集数据
        /// </summary>
        public T? Data { get; set; }

        /// <summary>
        /// 冗余结果
        /// </summary>
        public object? OValue { get; set; }
    }
}